#!/usr/bin/env python
#-*- coding:utf-8 -*-
'''
计算面积和体积
'''

import math 
import types
def calSquare( width ):
    return  width ** 2

def calSquareVolume(width):
    return width ** 3 

def calCircle(width):
    return math.pi * (width ** 2)

def calCircleVolume(width):
    return  (4.0/3.0) * math.pi * (width ** 3)


if __name__ == '__main__':
    print calSquare(2)
    print calSquareVolume(2)
    print calCircle(2)
    print calCircleVolume(2)
